<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript">

</script>
<script src="jsp/programacion/js/form-examen.js"></script>
</head>
<body >
<div >
<center>

</center>
<form action=""  >
	 	<table class="table table-bordered">
             <thead>
					<tr>
						<th>Codigo</th>
						<th>Nombre</th>
						<th>Fecha</th>
						<th>Programacion</th>
						<th>Consolidacion</th>
						<th>Calificacion</th>
						<th>Accion</th>
					</tr>
             </thead>
             <tbody>
<c:choose>
    <c:when test="${!empty ListaExamenes}">
             <c:forEach  var="examen"  items="${ListaExamenes}" varStatus="counter" >
                  <tr>
                   	  <td> ${examen.id} </td>
                   	  <td> ${examen.descripcion}</td>
				      <td> ${examen.fechaExamen}</td>
        			  <td align="center">
        			  <c:if test="${examen.stCargaPlantilla=='2'}">
                          <span class="glyphicon glyphicon-ok text-primary"></span>
        			  </c:if>
        			  </td>
        			  <td align="center">
        			  <c:if test="${examen.stCalificacion=='2'}">
                          <span class="glyphicon glyphicon-ok text-primary"></span>
        			  </c:if>
        			  </td>
        			  <td align="center">
        			  <c:if test="${examen.stCargaArchivo=='2'}">
                          <span class="glyphicon glyphicon-ok text-primary"></span>
        			  </c:if>
        			  </td>
        			  <td align="center">
        			  <c:if test="${examen.stCalificacion=='1'}">
                          <a  href="form-upload.htm?id=${examen.id}"  ><span class="glyphicon glyphicon-cloud-upload text-primary">Cargar</span></a>
        			  </c:if>
        			  </td>
                   </tr>
             </c:forEach>
    </c:when>
    <c:otherwise>
    <tr>
    <td colspan="7">
        No se encontraron resultados....
        </td>
        </tr>
    </c:otherwise>
</c:choose>
             </tbody>
	 	</table>
</form>
<center>
    <a href="form-examen.htm" ><span class="btn btn-success "   >Nuevo Examen</span></a>
    </center>
</div>
</body>
</html>